import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入重置样式表
import './css/reset.css'
import './css/common.css'
// 引入Vant动画插件
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

import axios from 'axios';
Vue.prototype.axios = axios.create({
  baseURL:"http://music.couchpotato.fun"
})

// 引入audio并挂载在vue实例上
import audio from "./js/audio.js";
Vue.prototype.audio = audio;

Vue.config.productionTip = false

new Vue({
  router,
  store,
  created() {
  // 将当前vue实例作为属性挂载到audio对象身上
    this.audio.vm = this;
  },
  render: h => h(App)
}).$mount('#app')
